<template>
	<view class="body">
		
		 
		 <view class="title">
			 <view>批量采购业务</view>
			 <view>专业一对一服务</view>
		 </view>
		 
		 <view class="mian">
			 <view class="tit">Shiru批量采购业务预约</view>
			 
			<input  type="text" placeholder="你的姓名*	" v-model="da.name" />
			<input  type="text" placeholder="你的手机号*	" v-model="da.mobileno" />
			<input  type="text" placeholder="公司邮箱" v-model="da.email"/>
			<input  type="text" placeholder="公司名称" v-model="da.company"/>
			<input  type="text" placeholder="预算金额" v-model="da.money"/>
			<input  type="text" placeholder="服务城市" v-model="da.city"/>
			<input  type="text" style="height: 140upx;" placeholder="需求备注" v-model="da.memo" />
			<view style="color: #CCCCCC; font-size: 26upx; text-align: left; padding-left: 70upx;">信息带有*的为必填项</view>
			
			<view class="annui">
				<u-checkbox v-model="ischecked">
					<view class="itenTxt">我以阅读并同意<text @click="toLink('PrivacyPolicy')">隐私政策</text></view>
				</u-checkbox>
			
				<u-checkbox v-model="ischecked1">
					<view class="itenTxt"
					style="padding-top: 20upx;"
					>我同意shiru将本人<text @click="toLink('ReservationInfo')">预约信息</text>分享给 调研公司并接受shiru满意度电话调研。</view>
				</u-checkbox>
			</view>
			
			
			<view class="btn" @click="setCommitInfo()">
				提交
			</view>

			
		 </view>
		 
	</view>
</template>

<script>
	export default {
		data() {
			return {
				da:{
					'type':1,
				},
				ischecked:"",
				ischecked1:""
			}
		},
		methods: {
			toLink(link){
				uni.navigateTo({
					url:'/pages/appointment/child/'+link
				})
			},
			setCommitInfo(){
				console.log(this.da)
				if(!this.da.name ||!this.da.mobileno){
					uni.showToast({
					    title: '请输入手机号和姓名',
					    duration: 2000
					});
					return
				}else if(this.ischecked !=true ||this.ischecked1 !=true){
					uni.showToast({
					    title: '请同意预约信息',
					    duration: 2000
					});
					return
				}
				this.$api.request.setCommitInfo(this.da, (res)=> {
					if (res.body.status.statusCode === '0') {
						uni.showToast({
						    title: '提交成功',
						    duration: 2000
						});
					}
				})
			}
		}
	}
</script>

<style lang='scss'>
	.page{height:100%}
	.body{
		background: url(https://vkceyugu.cdn.bspapp.com/VKCEYUGU-3e676a2f-3358-41b1-bc69-7d45353b9d6e/c16b5b99-3972-409b-b9bb-e8e857fcb0ae.png) ;
		padding-bottom: 100upx;
	}
	
	.title{
		color: #FFFFFF;
		font-size: 42upx;
		font-weight: 500;
		view{
			width: 35%;
			/* margin: 0 auto; */
			line-height: 42upx;
			text-align: center;
			display: block;
			margin: 0 auto;
		}
		view:nth-child(1){
			padding-bottom: 30upx;
			border-bottom:4upx solid #FFFFFF ;
			padding-top: 65upx;
		}
		
		view:nth-child(2){
			width: 40%;
			margin: 40upx auto;
		}
	}
	
	
	.mian{
		width: 80%;
		margin: 0 auto;
		background-color: #FFFFFF;
		border-radius: 20upx;
		text-align: center;
		padding-bottom: 50upx;
		
		.tit{
			font-size: 36upx;
			padding: 70upx;
			font-weight: 500;
		}
		
		input{
			width: 80%;
			margin: 0 auto;
			text-align: left;
			border: 1upx solid #a4a4a4;
			height: 70upx;
			line-height: 70upx;
			border-radius: 15upx;
			padding-left: 20upx;
			margin-bottom: 20upx;
		}
		
		.annui{
			margin-top: 20upx;
			margin-bottom: 20upx;
			margin-left: 70upx;
			
			.itenTxt{
				font-size: 24upx;
				text-align: left;
				text{
					margin: 0 10upx;
					color: #4479df;
					
				}
				
			}	
		}
		
		.btn{
			width: 80%;
			height: 80upx;
			background-color: #4479df;
			margin-left: 70upx;
			line-height: 80upx;
			color: #FFFFFF;
			font-size: 32upx;
			border-radius: 20upx;
			
		}
	}
	
</style>
